package com.qf.service.impl;

import com.qf.common.exception.ServiceException;
import com.qf.common.vo.AddressVo;
import com.qf.entity.Address;
import com.qf.entity.Area;
import com.qf.mapper.AddressMapper;
import com.qf.service.AddressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @author KING
 * @ClassName: com.qf.service.impl.AddressServiceImpl
 * @Description: 该类的功能描述
 * @date: 2021/10/27 11:31
 */
@Service
public class AddressServiceImpl implements AddressService {
    @Resource
    private AddressMapper addressMapper;

    @Override
    public List<AddressVo> findAddress(Long memberId) {
        List<AddressVo> addressList = addressMapper.selectAddressByMid(memberId);
        return addressList;
    }
}
